import {RouteConfig} from 'react-router-config';
import Main from '@/pages/main';
import ArticleList from '@/pages/article-list';
import ArticlePage from '@/pages/article-page';
import ComplaintPage from '@/pages/complaint';
import TreeAdoptionPage from '@/pages/tree-adoption';
import ShopPage from '@/pages/shop';

export default [

   {
      path: '/main',
      component: Main
   },
   {
      path: '/article-list/:type',
      component: ArticleList
   },
   {
      path: '/article-page/:id',
      component: ArticlePage
   },
   {
      path: '/shop',
      component: ShopPage
   },

   {
      path: '/complaint',
      component: ComplaintPage
   },

   {
      path: '/tree-adoption',
      component: TreeAdoptionPage
   },

   {
      path: '/',
      redirect: '/main'
   }
] as RouteConfig[];


